package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 根据用户id查询用户待做任务
 * login-登录时检查,withdraw-提现时检查
 * Created by xiachao
 */

public class GetUserTodoTasks {

    public static final String TYPE_LOGIN = "login";// 登录

    public static final String TYPE_WITHDRAW = "withdraw";// 提现


    private String location;

    private GetUserTodoTasks(Builder builder) {
        location = builder.location;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private String location;

        private Builder() {
        }

        public Builder location(String location) {
            this.location = location;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().userTodoTasks(location);
        }
    }
}
